package org.tio.examples.httpImpl.server;

import java.io.IOException;

import org.tio.examples.httpImpl.common.HttpPacket;
import org.tio.server.AioServer;
import org.tio.server.ServerGroupContext;
import org.tio.server.intf.ServerAioHandler;
import org.tio.server.intf.ServerAioListener;

public class HttpImplServer {
    
    static ServerAioHandler<Object, HttpPacket, Object> aioHandler = new HttpAioHandler();
    static ServerAioListener<Object, HttpPacket, Object> aioListener = null;
    static ServerGroupContext<Object, HttpPacket, Object> serverGroupContext = new ServerGroupContext<>(aioHandler, aioListener);
    static AioServer<Object, HttpPacket, Object> aioServer = new AioServer<>(serverGroupContext); //可以为空
    
    static String serverIp = null;
    static int serverPort = org.tio.examples.showcase.common.Const.PORT;

    public static void main(String[] args) throws IOException{
        aioServer.start(serverIp, serverPort);
    }
    
    
    
}
